﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ObjectListItemCommandsExample.aspx.cs" Inherits="ObjectList_ObjectListItemCommandsExample" %>
<%@ Register TagPrefix="mobile" 
    Namespace="System.Web.UI.MobileControls"
    Assembly="System.Web.Mobile" %>
    
<mobile:Form runat="server" id="Form1">
    <mobile:Label runat="server" StyleReference="title">
        Season 2003 results</mobile:Label>
    <mobile:ObjectList id="ObjectList1" runat="server" 
                       AutoGenerateFields="false"
                       LabelField="TeamName">
        <Field Title="Team" DataField="TeamName"></Field>
        <Field Title="Won" DataField="Won"></Field>
        <Field Title="Drawn" DataField="Drawn"></Field>
        <Field Title="Lost" DataField="Lost"></Field>
        <Field Title="Points" DataField="Points"></Field>
        <Field Title="Champs. Cup" DataField="ChampionsCup" Visible="false">
        </Field>
        <Field Title="Inter-City Cup" DataField="InterCup" Visible="false">
        </Field>
        <Command Name="ChampsCup" Text="Champions Cup"/>
        <Command Name="InterCityCup" Text="Inter-City Cup"/>
    </mobile:ObjectList>
</mobile:Form>
   
<mobile:Form runat="server" id="Form2">
    <mobile:Label runat="server" StyleReference="title">
        Season 2003 European Results</mobile:Label>
    <mobile:Label runat="server" id="Label1"/>
    <mobile:Link runat="server" NavigateUrl="#Form1">
        Back
    </mobile:Link>
</mobile:Form>